import java.util.Random;

/**
 * @author Sean Barkley, Matthew Metcalf, James Kuglics
 *
 */
public class Driver {
	
	final private static int nUnits = 100;
	final private static int nClients = 5;
	final private static int nRequests = 5;
	final private static long minSleepMillis = 1000;
	final private static long maxSleepMillis = 2000;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Random random = new Random();
		Banker banker = new Banker(nUnits);
		
		for(int i = 0; i < nClients; i++){
			int nUnitsClaim = random.nextInt(nUnits) + 1;
			Client client = new Client("Client" + i, banker, nUnitsClaim, nRequests, minSleepMillis, maxSleepMillis);
			client.start();
		}		
	}

}
